package com.basic.business.print.mapper;

import com.basic.business.print.domain.TOrdersPrint;
import com.basic.common.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 业务-订单印刷品Mapper接口
 *
 * @author zhaoxy_jn@163.com
 */
public interface TOrdersPrintMapper extends BaseMapper<TOrdersPrint> {

    /**
     *
     * @param printCode
     * @return
     */
    List<TOrdersPrint> getDoesIsExist(@Param("printCode") String printCode,@Param("updateRowId") String updateRowId);

    /**
     * 批量更新状态
     * @param ids 主键编号集合
     * @param status 状态
     */
    public int updateStatusByIds(@Param("ids") String[] ids, @Param("status") String status);

    /**
     * 查询状态正常的印刷品编码
     */
    public List<String> getNormalPrintCode();
}
